package com.zy.dao.bs;

import java.util.List;

import com.zy.entity.bs.CustomerClubApply;
import org.apache.ibatis.annotations.Param;

import com.zy.dao.base.BaseDao;
import com.zy.entity.bs.Club;
import com.zy.pojo.query.bs.ClubQuery;

public interface ClubDao extends BaseDao<Club> {

	List<Club> listClub(@Param("clubQuery") ClubQuery clubQuery, @Param("start") Integer start, @Param("limit") Integer limit);

	long countClub(@Param("clubQuery") ClubQuery clubQuery);

	List<Club> getClubList(@Param("customerId") long customerId);

	/**
	 * 获取首页热门俱乐部
	 * @param start
	 * @param limit
	 * @return
	 */
	List<Club> getClubForHomePage(@Param("start") Integer start, @Param("limit") Integer limit);

	long countClubForHomePage();


    List<Club> getMyClub( @Param("userId") Long userId);



    Club getClubInfo(@Param("id")Long id);

    List<Club> getMyClubManager(@Param("userId") Long userId);
}